Optimal. Leaf size=610 \[ -\frac {3 i b^2 \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 \left (a^2+b^2\right )^2}-\frac {3 i b^2 \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 \left (a^2+b^2\right )^2}-\frac {6 b^2 \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 \left (a^2+b^2\right )^2}+\frac {6 b^2 \sqrt [3]{x} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 \left (a^2+b^2\right )^2}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d \left (a^2+b^2\right )^2}-\frac {6 i b^2 x^{2/3}}{d \left (a^2+b^2\right )^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b^2 x^{2/3}}{d (a+i b) (b+i a)^2 \left ((b+i a) e^{2 i \left (c+d \sqrt [3]{x}\right )}+i a-b\right )}+\frac {3 b \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 (a-i b)^2 (a+i b)}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 (-b+i a) (a-i b)^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d (a-i b)^2 (a+i b)}+\frac {4 b x}{(-b+i a) (a-i b)^2}+\frac {x}{(a-i b)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.40, antiderivative size = 610, normalized size of antiderivative = 1.00, number of steps used = 19, number of rules used = 11, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.688, Rules used = {3739, 3734, 2185, 2184, 2190, 2531, 2282, 6589, 2191, 2279, 2391} \[ -\frac {6 b^2 \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 \left (a^2+b^2\right )^2}-\frac {3 i b^2 \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 \left (a^2+b^2\right )^2}-\frac {3 i b^2 \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 \left (a^2+b^2\right )^2}+\frac {6 b^2 \sqrt [3]{x} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 \left (a^2+b^2\right )^2}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d \left (a^2+b^2\right )^2}-\frac {6 i b^2 x^{2/3}}{d \left (a^2+b^2\right )^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b^2 x^{2/3}}{d (a+i b) (b+i a)^2 \left ((b+i a) e^{2 i \left (c+d \sqrt [3]{x}\right )}+i a-b\right )}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^2 (-b+i a) (a-i b)^2}+\frac {3 b \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d^3 (a-i b)^2 (a+i b)}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{d (a-i b)^2 (a+i b)}+\frac {4 b x}{(-b+i a) (a-i b)^2}+\frac {x}{(a-i b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2184
Rule 2185
Rule 2190
Rule 2191
Rule 2279
Rule 2282
Rule 2391
Rule 2531
Rule 3734
Rule 3739
Rule 6589
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \tan \left (c+d \sqrt [3]{x}\right )\right )^2} \, dx &=3 \operatorname {Subst}\left (\int \frac {x^2}{(a+b \tan (c+d x))^2} \, dx,x,\sqrt [3]{x}\right )\\ &=3 \operatorname {Subst}\left (\int \left (\frac {x^2}{(a-i b)^2}-\frac {4 b^2 x^2}{(i a+b)^2 \left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2}+\frac {4 b x^2}{(a-i b)^2 \left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )}\right ) \, dx,x,\sqrt [3]{x}\right )\\ &=\frac {x}{(a-i b)^2}+\frac {(12 b) \operatorname {Subst}\left (\int \frac {x^2}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{(a-i b)^2}-\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {x^2}{\left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2} \, dx,x,\sqrt [3]{x}\right )}{(i a+b)^2}\\ &=\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}+\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {x^2}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{(i a-b) (a-i b)^2}-\frac {(12 b) \operatorname {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^2}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{a^2+b^2}-\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^2}{\left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2} \, dx,x,\sqrt [3]{x}\right )}{a^2+b^2}\\ &=-\frac {6 b^2 x^{2/3}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}+\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^2}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{(a+i b)^2 (i a+b)}-\frac {(12 b) \operatorname {Subst}\left (\int x \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt [3]{x}\right )}{(a-i b)^2 (a+i b) d}+\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {x}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{(a-i b)^2 (a+i b) d}\\ &=-\frac {6 i b^2 x^{2/3}}{\left (a^2+b^2\right )^2 d}-\frac {6 b^2 x^{2/3}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}+\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {(6 b) \operatorname {Subst}\left (\int \text {Li}_2\left (-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt [3]{x}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {\left (12 b^2\right ) \operatorname {Subst}\left (\int \frac {e^{2 i c+2 i d x} x}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt [3]{x}\right )}{(a-i b) (a+i b)^2 d}+\frac {\left (12 i b^2\right ) \operatorname {Subst}\left (\int x \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (a^2+b^2\right )^2 d}\\ &=-\frac {6 i b^2 x^{2/3}}{\left (a^2+b^2\right )^2 d}-\frac {6 b^2 x^{2/3}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}+\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b^2 \sqrt [3]{x} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {6 b^2 \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {(3 b) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {(a-i b) x}{a+i b}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {\left (6 b^2\right ) \operatorname {Subst}\left (\int \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {\left (6 b^2\right ) \operatorname {Subst}\left (\int \text {Li}_2\left (-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (a^2+b^2\right )^2 d^2}\\ &=-\frac {6 i b^2 x^{2/3}}{\left (a^2+b^2\right )^2 d}-\frac {6 b^2 x^{2/3}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}+\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b^2 \sqrt [3]{x} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {6 b^2 \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {3 b \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}+\frac {\left (3 i b^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {\left (1-\frac {i b}{a}\right ) x}{1+\frac {i b}{a}}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}{\left (a^2+b^2\right )^2 d^3}-\frac {\left (3 i b^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {(a-i b) x}{a+i b}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}{\left (a^2+b^2\right )^2 d^3}\\ &=-\frac {6 i b^2 x^{2/3}}{\left (a^2+b^2\right )^2 d}-\frac {6 b^2 x^{2/3}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt [3]{x}\right )}\right )}+\frac {x}{(a-i b)^2}+\frac {4 b x}{(i a-b) (a-i b)^2}-\frac {4 b^2 x}{\left (a^2+b^2\right )^2}+\frac {6 b^2 \sqrt [3]{x} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {6 b x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {6 i b^2 x^{2/3} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {3 i b^2 \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {6 b \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {6 b^2 \sqrt [3]{x} \text {Li}_2\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {3 b \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {3 i b^2 \text {Li}_3\left (-\frac {(a-i b) e^{2 i \left (c+d \sqrt [3]{x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.88, size = 538, normalized size = 0.88 \[ \frac {\frac {b \left (\frac {3 b \left (a \left (1+e^{2 i c}\right )-i b \left (-1+e^{2 i c}\right )\right ) \text {Li}_2\left (\frac {(-a-i b) e^{-2 i \left (c+d \sqrt [3]{x}\right )}}{a-i b}\right )}{d^2 \left (a^2+b^2\right )}+\frac {3 a \left (a \left (1+e^{2 i c}\right )-i b \left (-1+e^{2 i c}\right )\right ) \left (2 d \sqrt [3]{x} \text {Li}_2\left (\frac {(-a-i b) e^{-2 i \left (c+d \sqrt [3]{x}\right )}}{a-i b}\right )-i \text {Li}_3\left (\frac {(-a-i b) e^{-2 i \left (c+d \sqrt [3]{x}\right )}}{a-i b}\right )\right )}{d^2 \left (a^2+b^2\right )}+\frac {6 a x^{2/3} \left (a \left (1+e^{2 i c}\right )-i b \left (-1+e^{2 i c}\right )\right ) \log \left (1+\frac {(a+i b) e^{-2 i \left (c+d \sqrt [3]{x}\right )}}{a-i b}\right )}{(a+i b) (b+i a)}+\frac {6 b \sqrt [3]{x} \left (a \left (1+e^{2 i c}\right )-i b \left (-1+e^{2 i c}\right )\right ) \log \left (1+\frac {(a+i b) e^{-2 i \left (c+d \sqrt [3]{x}\right )}}{a-i b}\right )}{d (a+i b) (b+i a)}+\frac {4 a d x}{a-i b}+\frac {6 b x^{2/3}}{a-i b}\right )}{d \left (-i a \left (1+e^{2 i c}\right )+b \left (-e^{2 i c}\right )+b\right )}+\frac {3 b^2 x^{2/3} \sin \left (d \sqrt [3]{x}\right )}{d (a \cos (c)+b \sin (c)) \left (a \cos \left (c+d \sqrt [3]{x}\right )+b \sin \left (c+d \sqrt [3]{x}\right )\right )}+\frac {x (a \cos (c)-b \sin (c))}{a \cos (c)+b \sin (c)}}{a^2+b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.54, size = 1191, normalized size = 1.95 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \tan \left (d x^{\frac {1}{3}} + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.27, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (a +b \tan \left (c +d \,x^{\frac {1}{3}}\right )\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 2.17, size = 1746, normalized size = 2.86 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\left (a+b\,\mathrm {tan}\left (c+d\,x^{1/3}\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (a + b \tan {\left (c + d \sqrt [3]{x} \right )}\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________